<?php
//Compiled by TIBlog Template Engine v2.0 , Created on : 2011-04-28 16:57:00
defined('IN_DTE') or exit('Access Denied');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>Administrator's Control Panel</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="/static/admin/style.css" type=text/css rel=stylesheet>
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/js/dialog.js"></script>
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY id="main">
<h2>电影图片列表</h2>
<script type="text/javascript">
function edit(id) {
	$.fn.jmodal({
		title: '修改电影图片标题',
		content: function(e) {
			e.html('loading...');
			e.load('/admin/moviepic/edit/'+id);
		},
		okEvent: function(obj, args) {
			args.complete();
		}
	});
	return false;
}
function editaction (id) {
	$.ajax({url: '/admin/moviepic/edit/'+id,
		type: 'POST',
		data:{
			title:$('#title').val(),
			id:id
		},
		dataType: 'html',
		error: function(){
			alert('System Error !');
		},
		success: function(result){
			$.fn.hideJmodal();			
		}
	});
}
</script>
<FORM name="upload" method="POST" action="" >
<DIV class="imgBox">
	<UL>
<?php
if (!empty($_obj['list'])){
if (!is_array($_obj['list']))
$_obj['list']=array(array('list'=>$_obj['list']));
$_tmp_arr_keys=array_keys($_obj['list']);
if ($_tmp_arr_keys[0]!='0')
$_obj['list']=array(0=>$_obj['list']);
$_stack[$_stack_cnt++]=$_obj;
foreach ($_obj['list'] as $rowcnt=>$list) {
$list['ROWCNT']=$rowcnt;
$list['ALTROW']=$rowcnt%2;
$list['ROWBIT']=$rowcnt%2;
$_obj=&$list;
?>
	  <LI><div class="content"><a href="/static/upload/photos/<?php
echo $_obj['filename'];
?>
" style="background:none"><img src="/static/upload/photos/thumb/<?php
echo $_obj['filename'];
?>
"></a></div>
	  <DIV class="name"><a href="javascript:;" onclick="edit(<?php
echo $_obj['id'];
?>
);" class="del">修改</a> | <a href="/admin/moviepic/del/<?php
echo $_obj['id'];
?>
" class="del" onclick="return confirm('确定要删除？此操作不可撤销！');">删除</a></DIV>
	  </LI>	  
<?php
}
$_obj=$_stack[--$_stack_cnt];}
?>
	</UL>
	<DIV class=clear></DIV>
</DIV>
</form>
<?php
echo $_obj['pageParam'];
?>

<br>
</BODY></HTML>
